package com.wlh.animation.others;

import com.wlh.animation.R;

import android.app.Activity;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.Toast;

/**
 * Created by weilh on 2018/10/15
 */
public class ClipChildrenTestAct extends Activity {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_clip_children);
        View first = findViewById(R.id.first);
        first.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Toast.makeText(v.getContext(), "First CLick", Toast.LENGTH_SHORT).show();
            }
        });
        View second = findViewById(R.id.last);
        second.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Toast.makeText(v.getContext(), "Last Click", Toast.LENGTH_SHORT).show();
            }
        });
    }
}
